<template>
  <div>
    <button @click="list.splice(1, 0, { id: 99, name: '新来的' })">添加一个新来的</button>
    <ul>
      <li v-for="item in list" :key="item.id">
        <input type="text" /> {{ item.name }}
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [
          { id: 40, name: '老大'},
          { id: 66, name: '老二'},
          { id: 74, name: '老三'},
          ],
    };
  },
};
</script>

<style>
</style>